package web.weibo.model;

public class Message {
    public int user_id;
    public String content;

    public Message(int user_id, String content) {
        this.user_id = user_id;
        this.content = content;
    }

    public Message () {}

    @Override
    public String toString() {
        String s = String.format(
                "(用户: %s, 内容 content: %s)",
                this.user_id,
                this.content
        );
        return s;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
